import { Request } from "../request/request";

//封装接口
// 例：
//stater
module.exports.Banner = () => Request({
  url: "/banner/list",
  method: "get",
})
// 登陆
module.exports.logina = (data) => Request({
  url: `/user/wxapp/login`,
  method: "get",
  data
})
// 退出登陆
module.exports.outlogin = (data) => Request({
  url: `/user/loginout`,
  method: "get",
  data
})

// 注册
module.exports.zhuce = (obj) => Request({
  url: `/user/wxapp/register/simple?code=${obj}`,
  method: "post",
  data:obj
})
// 用户资产
module.exports.zichan = (data) => Request({
  url: `/user/amount?token=${data}`,
  method: "get",
  data
})
// 获取订单列表
module.exports.orderlist = (data) => Request({
  url: `/order/list?token=${data}`,
  method: "post",
  data
})